<template>
    <div class="content">
        <web class = 'web' :src="src"></web>
        <text class = 'tt' @click="jump()"> 返回 </text>
    </div>

</template>

<script>
    const C = new BroadcastChannel('wyz')
    C.onmessage = function (e) {
      this.fade = e.data
    }
  export default {
    name: 'c',
    data () {
      return {
        fade: C.onmessage,
        src : 'https://m.baidu.com/?pu=sz@1321_480&isredirect=1'
      }
    },
    methods: {
      jump: function () {
        this.$router.push(this.fade);
        // this.$router.push('');
      }
    }

  }
</script>

<style scoped>
    .web{
        width:700px;
        height:1000px;
    }
    .tt{
        font-size: 40px;
        text-align: right;
    }
</style>
